{extend name="index/index" /}

{block name="main"}

<div class="tpl-content-wrapper">
    <div class="tpl-content-page-title">
        RBAC 列表
    </div>
    <ol class="am-breadcrumb">
        <li><a href="{:url('admin/index/index')}" class="am-icon-home">首页</a></li>
        <li class="am-active">分配</li>
    </ol>
    <div class="tpl-portlet-components">
        <div class="portlet-title">
            <div class="caption font-green bold">
                <span class="am-icon-code"></span> 分配权限
            </div>
            <div class="tpl-portlet-input tpl-fz-ml"></div>
        </div>
        <div class="tpl-block">
            <form method="post" action="{:url('admin/role/update_qx')}">
                {volist name="node" id="node"}
                    <p>{$node.name} <input type="checkbox" name="nid[]" value="{$node.id}" {:in_array($node['name'],$haves) ? 'checked' : ''} ></p>
                {/volist}
                <input type="hidden" name="rid" value="{$id}">
                <button class="am-btn am-btn-info am-btn-xs am-text-secondary">提交</button>
            </form>
        </div>
    </div>

{/block}